package com.club.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.club.entity.SysOperation;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface SysOperationMapper extends BaseMapper<SysOperation> {

    @Select("SELECT o.*,u.username FROM sys_operation o LEFT JOIN sys_user u ON o.user_id = u.id")
    public List<Map<String,Object>> getOperationData();
}
